import request from '@/utils/request'

// 查询盘点单信息列表
export function listStockbill(query) {
  return request({
    url: '/inv/stockbill/list',
    method: 'get',
    params: query
  })
}

// 查询盘点单信息详细
export function viewById(data) {
  return request({
    url: '/inv/stockbill/viewById',
    method: 'post',
    data: data
  })
}

// 新增盘点单信息
export function addStockbill(data) {
  return request({
    url: '/inv/stockbill/addStockbill',
    method: 'post',
    data: data
  })
}

// 修改盘点单信息
export function updateStockbill(data) {
  return request({
    url: '/inv/stockbill/updateStockbill',
    method: 'post',
    data: data
  })
}

// 删除盘点单信息
export function delStockbill(id) {
  return request({
    url: '/inv/stockbill/' + id,
    method: 'delete'
  })
}

export function getInvDataList(data) {
  return request({
    url: '/inv/stockbill/getInvDataList',
    method: 'post',
    data: data
  })
}

export function updateBillStatus(data) {
  return request({
    url: '/inv/stockbill/updateBillStatus',
    method: 'post',
    data: data
  })
}
